﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ShowroomMobile.Controls
{
    public partial class NextPrev : System.Web.UI.UserControl
    {
        public enum ContentType
        {
            Product
        }

        public ContentType NextPrevType
        {
            get
            {
                object o = ViewState["NextPrevType"];
                return o == null ? ContentType.Product : (ContentType)o;
            }
            set
            {
                ViewState["NextPrevType"] = value;
            }
        }

        public string NextUrl
        {
            get
            {
                object o = ViewState["NextUrl"];
                return o == null ? "" : Convert.ToString(o);
            }
            set
            {
                ViewState["NextUrl"] = value;
            }
        }

        public string PrevUrl
        {
            get
            {
                object o = ViewState["PrevUrl"];
                return o == null ? "" : Convert.ToString(o);
            }
            set
            {
                ViewState["PrevUrl"] = value;
            }
        }

        public string DisplayNext
        {
            get
            {
                return string.IsNullOrEmpty(NextUrl) ? "hide" : "";
            }
        }

        public string DisplayPrev
        {
            get
            {
                return string.IsNullOrEmpty(PrevUrl) ? "hide" : "";
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
    }
}